{% extends 'iframe/basePlus.html.twig' %}
{% block cardHeader %}
    查看
    <div class="layui-btn layui-hide"></div>
    <a href='/Admin/Automate/index?alias={{ alias }}' class='layui-btn layui-btn-sm dry-right layui-btn-green'>列表</a>
{% endblock %}
{% block cardBody %}
    <table class="layui-table">
        <colgroup>
            <col width="{{ width }}">
            <col width="2000">
        </colgroup>
        {% for item in list %}
            {% if item.js == '' %}
                <tr>
                    <td>{{ item.name }}</td>
                    <td>{{ item.value }}</td>
                </tr>
            {% else %}
                <tr>
                    <td>{{ item.name }}</td>
                    <td id="{{ item.field }}"></td>
                </tr>
            {% endif %}
        {% endfor %}
    </table>
    <script>
    var rs = {{ rs|raw }};
    {% for item in list %}
        {% if item.js != '' %}
            {{ item.js|raw }}
        {% endif %}
    {% endfor %}
    layui.use(['dry', 'file'], function(dry, fileModule){
        dry.mergeRequest();
        dry.htmlShow();
        dry.codeShow();
        fileModule.doPlay();
    });
    </script>
{% endblock %}